// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from '@/store'        
import api from './utils/api' // 导入api接口
Vue.prototype.$api = api; // 将api挂载到vue的原型上复制代码

import mesTip from "./utils/messageTips"
Vue.prototype.$mesTip = mesTip;

import './assets/css/reset.css' 
import '@/icons'   // 阿里矢量库api: http://www.iconfont.cn/

Vue.config.productionTip = false;
import './styles/index.scss' // global css

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
